package com.questionnaires.exception;

/**
 * Exception thrown when trying to add a duplicate entity.
 *
 * @author ioana.ruca@gmail.com
 */
public class NotUniqueException extends Exception{

    /**
     * Constructs a new exception with the specified detail message.
     *
     * @param message the detail message
     */
    public NotUniqueException(String message) {
        super(message);
    }

    /**
     * Constructs a new exception with the specified detail message and cause.
     *
     * @param message the detail message
     * @param cause   the cause (which is saved for later retrieval by the
     *                {#getCause()} method). A null value is permitted,
     *                and indicates that the cause is nonexistent or unknown
     */
    public NotUniqueException(String message, Throwable cause) {
        super(message, cause);
    }
}
